section .data

global limpiarVector

section .text

limpiarVector:

	push ebp
	mov ebp, esp
	
	mov eax,[ebp + 8]
	mov ecx,[eax] ; tamanio del vector
	mov esi,[eax + 4] ; puntero al vector

bucle:
	cmp ecx,0
	je fin
	
	mov dword [esi],0
	lea esi,[esi + 4]
	dec ecx
	jmp bucle
	
fin:

	pop ebp
	ret
	